home *** CD-ROM | disk | FTP | other *** search
/ NetNews Offline 2 / NetNews Offline Volume 2.iso / news / comp / sys / amiga / programmer / 1360 < prev    next >
Encoding:
Internet Message Format  |  1996-08-05  |  2.0 KB

  1. Path: news.uni-ulm.de!news
  2. From: gutmann@informatik.uni-ulm.de (Jens-Steffen Gutmann)
  3. Newsgroups: comp.sys.amiga.programmer
  4. Subject: Re: slink V6.56 problem
  5. Date: 18 Jan 1996 12:36:39 GMT
  6. Organization: University of Ulm, Germany
  7. Message-ID: <4dlesn$hq9@oracle.rz.uni-ulm.de>
  8. References: <4deus2$nm5@castle.nando.net>
  9. Reply-To: gutmann@informatik.uni-ulm.de
  10. NNTP-Posting-Host: gaius.informatik.uni-ulm.de
  11.  
  12. In article <4deus2$nm5@castle.nando.net>, sekruege@nando.net (Steve Krueger) writes:
  13. >In article <4ddhlk$hms@oracle.rz.uni-ulm.de> gutmann@informatik.uni-ulm.de (Jens-Steffen Gutmann) writes:
  14. >: Slink V6.56 seems to have problems when linking large object files.
  15. >: I noticed it when trying to recompile the gnuplot source code.
  16. >: Here is some code to produce a large source file:
  17. >: 
  18. [...]
  19. >: --------------------------------------------------------------------------
  20. >: Home:Prog/problems/linker > sc link linkprob.c
  21. >: SAS/C Amiga Compiler 6.55
  22. >: Copyright (c) 1988-1995 SAS Institute Inc.
  23. >: ***Can't open GST file "include:all.gst" for read
  24. >: Slink - Version 6.55
  25. >: Copyright (c) 1988-1995 SAS Institute, Inc.  All Rights Reserved.
  26. >: 
  27. >: 
  28. >: SLINK Complete - Maximum code size = 85128 ($00014c88) bytes
  29. >: 
  30. >: Final output file size = 101192 ($00018b48) bytes
  31. >: --------------------------------------------------------------------------
  32. >: >
  33. >You will notice the waring in the 6.55 compile saying that it can't
  34. >find all.gst. That's the key.
  35. >
  36. >The file ALL.GST is compiled with CODE=NEAR (the default). Therefore,
  37. >the function printf() gets NEAR associated with it. Adding CODE=FAR
  38. >to the compile line will not change the call to anything in ALL.GST.
  39. >
  40. >Therefore, you either need to make a new GST for CODE=FAR, or don't
  41. >use the GST for CODE=FAR.
  42.  
  43. Thanks! I have removed the GST line from SCOPTIONS and now it works.
  44.  
  45. Another question: Why does slink work when I split the large
  46. source file into pieces, compile each and link all together?
  47.  
  48. Regards
  49.     Steffen
  50.  
  51. -- 
  52. Steffen Gutmann
  53. gutmann@informatik.uni-ulm.de
  54.  
  55.  
  56.